package cn.udrm.water.base.v1.commons.models;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * http响应数据封装
 * @author liukang
 * @date 2018年8月14日
 */
@Getter
@Setter
@NoArgsConstructor
public class ResponseParam<T> {
	
	private String message;
	private Integer code;
	private T data;
	
	public ResponseParam(String message, Integer code) {
		this.message = message;
		this.code = code;
	}

	public ResponseParam(String message, Integer code, T data) {
		this(message, code);
		this.data = data;
	}

}
